package com.ict.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ict.web.controller.file.dto.YzqFileDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class NoticeAndMsgVo {

    /**类型 :0公告*/
    public static final String NOTICE_TYPE_NOTICE = "0";
    /**类型 :1系统消息*/
    public static final String NOTICE_TYPE_MSG= "1";
    /**类型 :2年度计划消息*/
    public static final String NOTICE_TYPE_ANNUAL_PLAN= "2";

    @ApiModelProperty(value = "公告id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String noticeId;

    @ApiModelProperty(value = "公告类型")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String noticeType;

    @ApiModelProperty(value = "公告标题")
    private String noticeTitle;

    @ApiModelProperty(value = "公告内容")
    private String noticeContent;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "阅读标签（0未阅读，1已阅）")
    private String readFlag;

    @ApiModelProperty(value = "公告附件id")
    private String noticeFileId;

    @ApiModelProperty(value = "公告附件名字")
    private String noticeFileName;

    @ApiModelProperty(value = "公告附件url")
    private String noticeFileUrl;
}
